package com.zjq.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Address {
    private int addressId;
    private String city;
    private String county;
    private String detailed;
    private int userId;
    private User user;
    private String num;
    private String name;

    public Address(int addressId, String city, String county, String detailed, int userId, String num, String name) {
        this.addressId = addressId;
        this.city = city;
        this.county = county;
        this.detailed = detailed;
        this.userId = userId;
        this.num = num;
        this.name = name;
    }
}
